f="jobcount"

if [ $1 == 'mr' ]; then
  rm mr-*
  go build -race -buildmode=plugin ../mrapps/$f.go
  go run -race mrcoordinator.go pg-*.txt
elif [ $1 == 'worker' ]; then
  go build -race -buildmode=plugin ../mrapps/$f.go
  go run -race mrworker.go $f.so
else
  echo "No sumch command."
  exit 1
fi

